package com.ruoyi.pc.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 设备对象 lb_device
 * 
 * @author ruoyi
 * @date 2020-06-21
 */
public class LbDevice extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 设备号 */
    @Excel(name = "设备号")
    private String code;

    /** 设备名称 */
    @Excel(name = "设备名称")
    private String name;

    /** 是否启用 */
    @Excel(name = "是否启用")
    private Integer enable;

    /** 创建人 */
    @Excel(name = "创建人")
    private String createUser;

    /** 修改时间 */
    @Excel(name = "修改时间")
    private String modifyTime;

    /** 修改人 */
    @Excel(name = "修改人")
    private String modifyUser;

    /** 时间戳 */
    @Excel(name = "时间戳")
    private String ts;

    /** 删除标记 */
    @Excel(name = "删除标记")
    private Integer dr;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCode(String code) 
    {
        this.code = code;
    }

    public String getCode() 
    {
        return code;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setEnable(Integer enable) 
    {
        this.enable = enable;
    }

    public Integer getEnable() 
    {
        return enable;
    }
    public void setCreateUser(String createUser) 
    {
        this.createUser = createUser;
    }

    public String getCreateUser() 
    {
        return createUser;
    }
    public void setModifyTime(String modifyTime) 
    {
        this.modifyTime = modifyTime;
    }

    public String getModifyTime() 
    {
        return modifyTime;
    }
    public void setModifyUser(String modifyUser) 
    {
        this.modifyUser = modifyUser;
    }

    public String getModifyUser() 
    {
        return modifyUser;
    }
    public void setTs(String ts) 
    {
        this.ts = ts;
    }

    public String getTs() 
    {
        return ts;
    }
    public void setDr(Integer dr) 
    {
        this.dr = dr;
    }

    public Integer getDr() 
    {
        return dr;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("code", getCode())
            .append("name", getName())
            .append("enable", getEnable())
            .append("createTime", getCreateTime())
            .append("createUser", getCreateUser())
            .append("modifyTime", getModifyTime())
            .append("modifyUser", getModifyUser())
            .append("ts", getTs())
            .append("dr", getDr())
            .toString();
    }
}
